Vue.component('textpopup', {
  template: '<el-popover placement="right" width="300" trigger="click" class="c-textpopup">' +
    '   <el-input type="textarea" :rows="3" v-model="value" @input.native.stop="onChange"></el-input>' +
    '   <i slot="reference" class="el-icon-edit"></i>' +
    '</el-popover> ',
    
    model: {
      prop: 'value',
      event: 'textchange'
    },
    props: {
      value: ""
    },
    data: function () {
      return {
      }
    }, 

    mounted: function(){
    },
    methods: {
      onChange: function(){
        this.$emit("textchange", this.value);
      }
    }
}) 